//创建控制器和路由的配置
(function (angular) {
  //1:创建模块
  var app = angular.module('home',['ngRoute']);
  //2:配置路由
  app.config(['$routeProvider', function ($routeProvider) {
    $routeProvider.when('/home_page',{
       templateUrl:'./home/home.html',
       controller:'homeController'
     })
  }])
  //3:创建控制器
  app.controller('homeController',['$scope', function ($scope) {
     console.log('home');
  }]);


})(angular)